package name.rainman.examples.osgi.quoteservice.internal;

import java.util.Random ;
import name.rainman.examples.osgi.quote.IQuoteService;

public class QuoteService implements IQuoteService {

	@Override
	public String getQuote() {
		Random r = new Random() ; 
		int nextInt = r.nextInt(3 ) ;
		switch ( nextInt ) {
		case 0:
			return "Tell the truth" ;
		case 1:
			return "Feel Better" ;
		default:
			return "Go go go" ;
		}
	}

}
